package com.scau.hwadee.examination.mapper;

import com.scau.hwadee.examination.entity.Examcourse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YHX
 * @date 2019/7/29  9:01
 * @description
 */
public interface ExamcourseMapper {
  int deleteByPrimaryKey(@Param("csId") String csId, @Param("esId") String esId);

  int deleteExamCourseList(@Param("list") List<Examcourse> examcourses);

  int insert(Examcourse record);

  int insertSelective(Examcourse record);

  int insertExamCourseList(@Param("list") List<Examcourse> examcourses);

  Examcourse selectByPrimaryKey(@Param("csId") String csId, @Param("esId") String esId);

  int updateByPrimaryKeySelective(Examcourse record);

  int updateByPrimaryKey(Examcourse record);

  int updateExamCourseList(@Param("list") List<Examcourse> examcourses);

  List<Examcourse> selectAllExamCourseByExamSessionId(@Param("pageNum") int pageNum,
                                                      @Param("pageSize") int pageSize,
                                                      @Param("examSessionId") String examSessionId);

  int selectCountExamCourseByExamSessionId(@Param("examSessionId") String examSessionId);

}
